import $http from "./requst";
// 登陆
export const login = data =>
  $http({ url: "/admin/Login/login", method: "post", data });
//获取验证码
export const Sendsms = data =>
  $http({ url: "/common/Sendsms", method: "post", data });
// 器材列表
export const Equipment = data =>
  $http({ url: "/admin/Equipment", method: "post", data });
// 器材新增编辑
export const EquipmentAdd = data =>
  $http({ url: "/admin/Equipment/add", method: "post", data });
// 器材删除
export const EquipmentDel = data =>
  $http({ url: "/admin/Equipment/del", method: "post", data });
// 器材详情
export const EquipmentShow = data =>
  $http({ url: "/admin/Equipment/show", method: "get", params: data });
// 器材借用
export const borrow = data =>
  $http({ url: "/admin/Equipment/borrow", method: "post", data });
// 器材预警列表
export const Warning = data =>
  $http({ url: "/admin/Warning", method: "post", data });
// 借用记录
export const borrowRecord = data =>
  $http({ url: "/admin/Equipment/borrowRecord", method: "post", data });
// 器材归还
export const giveBack = data =>
  $http({ url: "/admin/Equipment/giveBack", method: "post", data });
// 标记为已知晓
export const zxStatus = data =>
  $http({ url: "/admin/Warning/zxStatus", method: "post", data });
// 过期检测器材
export const Timer = data =>
  $http({ url: "/admin/Timer", method: "post", data });
// 修改密码
export const editPassword = data =>
  $http({ url: "/admin/Password/edit", method: "post", data });
